﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LayoutLoggingService.Client
{
    /// <summary>
    /// Abstracts the service response (status, headers, and payload if any).
    /// </summary>
    public class Response
    {
        /// <summary>
        /// HTTP Status Code.
        /// </summary>
        public int StatusCode { get; set; }

        /// <summary>
        /// HTTP Reason Phrase corresponding to the Status Code.
        /// </summary>
        public string ReasonPhrase { get; set; }

        /// <summary>
        /// The error message (null if no error).
        /// </summary>
        public string ErrorMessage { get; set; }
    }
}
